<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
    <title>收费窗口 - 湖南省自来水公司营销管理信息系统</title>
    <link rel="stylesheet" href="../layui/css/layui.css">
    <link rel="stylesheet" href="../css/reset.css" type="text/css" media="screen" title="no title"/>
    <link rel="stylesheet" href="../css/text.css" type="text/css" media="screen" title="no title"/>
    <link rel="stylesheet" href="../css/form.css" type="text/css" media="screen" title="no title"/>
    <link rel="stylesheet" href="../css/buttons.css" type="text/css" media="screen" title="no title"/>
    <link rel="stylesheet" href="../css/grid.css" type="text/css" media="screen" title="no title"/>
    <link rel="stylesheet" href="../css/layout.css" type="text/css" media="screen" title="no title"/>
    <link rel="stylesheet" href="../css/ui-darkness/jquery-ui-1.8.12.custom.css" type="text/css" media="screen"
          title="no title"/>
    <link rel="stylesheet" href="../css/plugin/jquery.visualize.css" type="text/css" media="screen" title="no title"/>
    <link rel="stylesheet" href="../css/plugin/facebox.css" type="text/css" media="screen" title="no title"/>
    <link rel="stylesheet" href="../css/plugin/uniform.default.css" type="text/css" media="screen" title="no title"/>
    <link rel="stylesheet" href="../css/plugin/dataTables.css" type="text/css" media="screen" title="no title"/>
    <link rel="stylesheet" href="../css/custom.css" type="text/css" media="screen" title="no title">
    <script src="/webjars/vue/2.5.17/dist/vue.js"></script>
    <style type="text/css">
        table.pay td {
            height: 30px;
            vertical-align: middle;
        }

        .getmoney {
            text-align: right;
            font-weight: bold;
        }

        table.billlist {
            cursor: default;
        }

        table.billlist thead th {
            background-color: #000 !important;
        }

        .bg {
            color: orangered;
        }

        table.billlist tr.selected td {
            background-color: #333;
            color: #ff0;
        }

        .second, .second td, .second th {
            font-size: 12px;
        }
    </style>
    <script src="../layui/layui.all.js"></script>
</head>

<body>
<div id="app">
    <div id="wrapper">

        <div id="bool"><script>window.onload=function (){  $("#bool").load("../ming.html");}</script></div>


        <div id="content" class="xgrid">

            <div class="x12">

                <h2>
                    收费窗口
                </h2>

                <div class="tab_container">
                    <ul class="tabs">
                        <li><a href="#tab1">查询及收费</a></li>
                        <li><a href="#tab2">陈欠账单</a></li>
                        <li><a href="#tab3">历史交费记录</a></li>
                        <li><a href="#tab4">修改联系资料</a></li>
                        <li><a href="#tab5">打印历史详单</a></li>
                        <li><a href="#tab6">打印催缴通知单</a></li>
                    </ul>

                    <div class="tab_content_container">

                        <div id="tab1" class="tab_content">

                            <!------------------------------------- 查询 --------------------------------------------->
                            <h3>查询</h3>
                            <table>
                                <tr>
                                    <td>用户编码</td>
                                    <td><input size="16" v-model="usUser.userno"/></td>
                                    <td>用户简码</td>
                                    <td><input size="16" v-model="usUser.abc"/></td>
                                    <td>短信电话</td>
                                    <td><input size="16" v-model="usUser.phone"/></td>
                                    <td>联系电话</td>
                                    <td><input size="16" v-model="usUser.smsphone"/></td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td>档案编号</td>
                                    <td><input size="16" v-model="usUser.docNum"/></td>
                                    <td>用户姓名</td>
                                    <td><input size="16" v-model="usUser.username"/></td>
                                    <td>联系地址</td>
                                    <td colspan="4"><input size="16" v-model="usUser.address"/>
                                        <a href="javascript:;" class="btn btn-icon btn-small btn-find btn-blue"
                                           @click="findUser();"><span></span>查询</a>
                                        <a href="../page/user_search1.html?id=0100000987" target="_blank"
                                           class="btn btn-icon btn-small btn-person btn-blue"><span></span>详情</a>
                                        <a href="javascript:;"
                                           class="btn btn-icon btn-small btn-refresh"
                                           @click="resetValue()"><span></span>重置</a>
                                    </td>
                                </tr>
                            </table>
                            <br/>
                            <!------------------------------------- 收费 --------------------------------------------->
                            <h3>收费</h3>
                            <table class="pay">
                                <tr>
                                    <td>陈欠总额</td>
                                    <td class="right red bold" v-text="TotalDue"></td>
                                    <td>元</td>
                                    <td rowspan="5" style="padding-left:80px;">
                                        <button @click="pay();"
                                                class="btn btn-icon btn-dollar btn-blue btn-large"><span></span>交费
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>剩余预交</td>
                                    <td class="right green bold" v-text="usUser.userMoney">+0.00&nbsp;&nbsp;</td>
                                    <td>元</td>
                                </tr>
                                <tr>
                                    <td>本次实收</td>
                                    <td><input class="getmoney" @blur="change($event)"/></td>
                                    <td>元</td>
                                </tr>
                                <tr>
                                    <td>本次找零</td>
                                    <td class="right" id="zl">0.00&nbsp;&nbsp;</td>
                                    <td>元 <input id="cc" type="checkbox" checked="checked"/><label
                                            for="cc">找零转入预存</label></td>
                                </tr>
                                <tr>
                                    <td>发票号码</td>
                                    <td>
						<span class="text_button">
							<input style="width:120px; text-align:center;" id="fp" readonly="readonly"/>
							<button @Click="selectInvoice();">浏览</button>
						</span>
                                    </td>
                                    <td>&nbsp;</td>
                                </tr>
                            </table>
                            <br/><br/><br/><br/>
                        </div>
                        <div id="tab2" class="tab_content second">


                            <!------------------------------------- 陈欠账单 --------------------------------------------->
                            <div style="float:left;width:45%;">
                                <h3>陈欠账单</h3>
                                <table class="data display billlist">
                                    <thead>
                                    <tr>
                                        <th>水费单</th>
                                        <th style="text-align:right">总金额</th>
                                        <th style="text-align:right">实收</th>
                                        <th style="text-align:right">未收</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr v-for="(bill,index) in billList" @click="queryDetails(bill.billNo,index)"
                                        :class='{bg:index==isactive}'>
                                        <td><span v-text="bill.billNo"></span></td>
                                        <td class="right"><span v-text="bill.billMoney"></span>元</td>
                                        <td class="right"><span v-text="bill.realMoney"></span>元</td>
                                        <td class="right"><span v-text="bill.billMoney-bill.realMoney"></span>元</td>
                                    </tr>
                                    </tbody>
                                </table>
                            </div>
                            <span style="float:left;width:1%;">&nbsp;</span>
                            <div id="details" style="float:left;width:54%; min-height:600px;">

                                <!------------------------------------- 水费明细 --------------------------------------------->
                                <h3>账单明细1</h3>
                                <table class="data display">
                                    <thead>
                                    <tr>
                                        <th>费用类型</th>
                                        <th style="text-align:right">水量</th>
                                        <th style="text-align:right">单价</th>
                                        <th style="text-align:right">小计</th>
                                        <th style="text-align:right">实收</th>
                                        <th style="text-align:right">未收</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr class="odd" v-for="pd in BilldetailList">
                                        <td>生活用水</td>
                                        <td class="right"><span v-text="pd.amount"></span>吨</td>
                                        <td class="right"><span v-text="pd.price"></span>元</td>
                                        <td class="right"><span v-text="pd.detailMoney"></span>元</td>
                                        <td class="right"><span v-text="pd.detailMoney"></span>元</td>
                                        <td class="right"><span v-text="pd.realMoney"></span>元</td>
                                    </tr>
                                    </tbody>
                                </table>

                                <!------------------------------------- 上月本月底码 --------------------------------------------->
                                <br/><br/>
                                <h3>表码明细</h3>
                                <table class="data display">
                                    <thead>
                                    <tr>
                                        <th style="text-align:left">上月底码</th>
                                        <th style="text-align:left">本月底码</th>
                                        <th style="text-align:right">实用水量</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr class="odd">
                                        <td class=""><span v-text="rdRead.preValue"></span>吨</td>
                                        <td class=""><span v-text="rdRead.curValue"></span> 吨</td>
                                        <td class="right"><span v-text="(rdRead.curValue)-(rdRead.preValue)"></span> 吨
                                        </td>
                                    </tr>

                                    </tbody>
                                </table>

                                <!------------------------------------- 分类用水量 --------------------------------------------->
                                <table class="data display">
                                    <thead>
                                    <tr>
                                        <th>用水类型</th>
                                        <th>提取方式</th>
                                        <th style="text-align:right;">分类水量</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr class="odd">
                                        <td>生活用水</td>
                                        <td>10%</td>
                                        <td class="right">12 吨</td>
                                    </tr>
                                    <tr class="even">
                                        <td>经营用水</td>
                                        <td>90%</td>
                                        <td class="right">108 吨</td>
                                    </tr>
                                    </tbody>
                                </table>
                                <br/>
                            </div>
                        </div>
                        <div id="tab3" class="tab_content">
                            <!------------------------------------- 历史交费记录 --------------------------------------------->
                            <table class="data display">
                                <thead>
                                <tr>
                                    <th width="200">历史交费单号</th>
                                    <th width="140">交费日期</th>
                                    <th width="140" style="text-align:right">交费金额</th>
                                    <th width="100" style="text-align:center">发票号</th>
                                    <th width="100">收费员</th>
                                    <th>&nbsp;</th>
                                </tr>
                                </thead>
                                <tbody>
                                <tr class="odd" v-for="p in PyPayList">
                                    <td v-text="p.payNo"></td>
                                    <td v-text="p.payDate"></td>
                                    <td class="right"><span v-text="p.payMoney"></span>元</td>
                                    <td class="center" v-text="p.invoice"></td>
                                    <td v-text="p.syEmp.empNmae"></td>
                                    <td><a href="javascript:reInvoice();" class="btn btn-small">发票补开</a></td>
                                </tr>
                                <tr class="odd">
                                    <td colspan="6">只显示最近的8条交费记录...</td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                        <div id="tab4" class="tab_content" style="min-height:500px;">

                            <!------------------------------------- 修改联系信息 --------------------------------------------->
                            <div class="form label-inline uniform">

                                <div class="field"><label>用户编码</label> <input disabled="disabled"
                                                                              v-model="User.userno"/></div>
                                <div class="field"><label>用户姓名</label> <input disabled="disabled"
                                                                              v-model="User.username"/>
                                </div>
                                <div class="field"><label>联系电话</label> <input v-model="User.smsphone"/></div>
                                <div class="field"><label>短信号码</label> <input v-model="User.phone"/></div>
                                <div class="field"><label>联系地址</label> <input size="80" v-model="User.address"/>
                                </div>
                                <div class="buttonrow">
                                    <button class="btn" @Click="updateUser();">保存</button>
                                </div>

                            </div>
                        </div>
                        <div id="tab5" class="tab_content">
                            <div class="reportTitle">
                                用户历史详单
                            </div>
                            <div class="height24">
                                <div style="float:left;width:200px;">用户编码：<span v-text="usUser.userno"></span></div>
                                <div style="float:left;">用户姓名：<span v-text="usUser.username"></span></div>
                                <div style="float:right;width:200px;">当前余额：<span v-text="usUser.userMoney"></span> 元
                                </div>
                            </div>
                            <table class="report">
                                <thead>
                                <tr>
                                    <th style="width:230px;">水费/交费单号</th>
                                    <th style="width:96px;">时间</th>
                                    <th style="width:70px;">上月表码</th>
                                    <th style="width:70px;">本月表码</th>
                                    <th style="width:70px;">用水量</th>
                                    <th style="width:100px;">应缴水费</th>
                                    <th style="width:100px;">交费金额</th>
                                    <th>余额/欠费</th>
                                </tr>
                                </thead>
                                <tbody>
                                <tr v-for="Userhistory in PyUserhistoryList">
                                    <td class="left">
                                        <span v-if="Userhistory.typee==0">水费单</span>
                                        <span v-if="Userhistory.typee==1">交费单</span>
                                        <span v-text="Userhistory.orderNo"></span>
                                    </td>
                                    <td class="center" v-text="Userhistory.datee"></td>
                                    <td class="right" v-text="Userhistory.preValue"></td>
                                    <td class="right" v-text="Userhistory.curValue"></td>
                                    <td class="right"><span v-text="Userhistory.amount"></span>吨</td>
                                    <td class="right"><span v-text="Userhistory.billMoney"></span>元</td>
                                    <td class="right"><span v-text="Userhistory.payMoney"></span>元</td>
                                    <td class="right"><span v-text="Userhistory.userMoney"></span>元
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                            <div class="height24 fright">
                                打印日期：<span v-text="gettime"></span>
                            </div>
                            <div style="margin:0px auto; text-align:center; margin-top:40px;">
                                <button class="btn btn-icon btn-print btn-blue" onClick="parent.close();"><span></span>打印
                                </button>
                            </div>
                        </div>
                        <div id="tab6" class="tab_content">
                            <div class="reportTitle">
                                催缴水费通知单
                            </div>
                            <div class="height24">
                                <div style="float:left;width:200px;">用户编码：<span v-text="usUser.userno"></span></div>
                                <div style="float:left;">用户姓名：<span v-text="usUser.username"></span></div>
                                <div style="float:right;width:200px;">当前余额：<span v-text="usUser.userMoney"></span> 元
                                </div>
                            </div>
                            <table class="report">
                                <thead>
                                <tr>
                                    <td class="center">水费单号</td>
                                    <td class="center">创建时间</td>
                                    <td class="center">应交金额</td>
                                    <td class="center">实交金额</td>
                                    <td class="center">状态</td>
                                </tr>
                                <tr v-for="bill in billList">
                                    <td class="center" v-text="bill.billNo"></td>
                                    <td class="center" v-text="bill.createDate">&nbsp;</td>
                                    <td class="center" v-text="bill.billMoney">&nbsp;</td>
                                    <td class="center" v-text="bill.realMoney">&nbsp;</td>
                                    <td class="center"><span v-if="bill.balance==0">未结清</span></td>
                                </tr>
                                </tbody>
                            </table>
                            <div class="height24">
                                尊敬的用户，你户已欠缴水费<span v-text="TotalDue"></span> 元，请在三天内至我公司收费大厅结清水费，否则将停止供水。
                            </div>
                            <div class="height24 right">
                                湖南省自来水公司
                                <span v-text="gettime"></span>
                            </div>
                            <div style="margin:0px auto; text-align:center; margin-top:10px;">
                                <button class="btn btn-icon btn-print btn-blue" onClick="parent.close();"><span></span>打印
                                </button>
                            </div>
                        </div>
                    </div>
                </div>

            </div> <!-- .x12 -->

        </div> <!-- #content -->

        <div id="footer">
            <div class="content_pad">
                <p>&copy; 2013-11 版权所有 <a href="#">湖南省自来水公司</a>. 技术支持 <a href="#">职业教育</a>.</p>
            </div> <!-- .content_pad -->
        </div> <!-- #footer -->

    </div> <!-- #wrapper -->
</div>
<script>
    //回调发票号
    function callback(a) {
        $("#fp").val(a);
    }

    //回调用户编号
    function callback1(id) {
        $.ajax({
            type: 'GET',
            url: "/py-bill/findPybillByUserNo",
            data: {"UserNo": id},
            dataType: 'JSON',
            success: function (json) {
                if (json.code == 200) {
                    if (json.data.billList == '' || json.data.billList == null) {
                        layer.msg("该用户没有缴费单");
                    } else {
                        var num = 0.0;
                        app.billList = json.data.billList;//水费单集合
                        $.each(json.data.billList, function (index) {
                            //计算陈欠总额
                            num = (num + this.billMoney);
                        });
                        app.TotalDue = num;
                    }
                    //用户信息
                    app.usUser = json.data.usUser;
                    app.User.userno = json.data.usUser.userno;
                    app.User.username = json.data.usUser.username;
                    app.User.address = json.data.usUser.address;
                    app.User.phone = json.data.usUser.phone;
                    app.User.smsphone = json.data.usUser.smsphone;
                    $(".getmoney").val(app.TotalDue - (app.usUser.userMoney));
                    //查询用户历史交费记录
                    $.ajax({
                        type: 'GET',
                        url: "/py-pay/findByUserNo",
                        data: {"UserNo": json.data.usUser.userno},
                        dataType: 'json',
                        success: function (json) {
                            app.PyPayList = json.data.PyPayList;//历史交费记录
                        },
                    });
                    //查询用户历史详单
                    //查询用户历史交费记录
                    $.ajax({
                        type: 'GET',
                        url: "/py-userhistory/findByUserNo",
                        data: {"UserNo": json.data.usUser.userno},
                        dataType: 'json',
                        success: function (json) {
                            app.PyUserhistoryList = json.data.PyUserhistoryList;//用户历史详单
                        },
                    });
                } else {
                    layer.msg(json.message, {icon: 2})
                }
            }
        });
    }

    var $ = layui.jquery,
        layer = layui.layer,
        form = layui.form;
    table = layui.table;
    var app = new Vue({
            el: "#app",
            data: {
                isactive: 0,
                User: {
                    userno: '',
                    username: '',
                    address: '',
                    phone: '',
                    smsphone: '',
                },
                usUser: {//用户信息
                    userno: '',
                    username: '',
                    abc: '',
                    createdate: '',
                    address: '',
                    phone: '',
                    smsphone: '',
                    areaID: '',
                    userType: '',
                    payType: '',
                    bankName: '',
                    bankNum: '',
                    formula: '',
                    userMoney: '0.0',
                    meterID: '',
                    docNum: '',
                    pwd: '',
                    contractNum: '',
                    contractDate: '',
                    volumeID: '',
                    volumeOrderIndex: '',
                    disabled: '',
                },
                PyBill: {//水费单
                    billNo: '',
                    readID: '',
                    billMoney: '0.0',
                    realMoney: '0.0',
                    balance: '',
                    invoiceNo: '',
                    balanceDate: '',
                    BalanceDate: '',
                },
                BilldetailList: '',//水费单详情集合
                PyPayList: '',//历史交费记录集合
                billList: '',//水费单集合
                rdRead: '',//抄表数据
                PyUserhistoryList: '',//用户历史详单
                TotalDue: '0.0',//应交水费总额度
                gettime: '',//当前时间
                payment: {//缴费
                    UserNo: '',//用户信息
                    RealMoney: '',//实交金额
                    invoiceNo: '',//发票号
                }
            }, methods: {
                //更新用户信息
                updateUser() {
                    if (app.usUser.userno != null && app.usUser.userno != "") {
                        if (app.usUser.phone == "" || app.usUser.phone == null) {
                            layer.msg("请填写用户短信号码", {icon: 7})
                        } else if (app.usUser.smsphone == "" || app.usUser.smsphone == null) {
                            layer.msg("请填写用户联系电话", {icon: 7})
                        } else if (app.usUser.address == "" || app.usUser.address == null) {
                            layer.msg("请填写用户联系地址", {icon: 7})
                        } else {
                            $.ajax({
                                type: 'POST',
                                url: "/py-bill/updateUser",
                                data: app.User,
                                dataType: 'json',

                                success: function (json) {
                                    if (json.code == 0) {
                                        app.usUser = json.data.user;

                                    }
                                    layer.msg(json.message, {icon: 1})
                                },
                            });
                        }
                    } else {
                        layer.msg("请选择用户后操作", {icon: 2})
                    }
                },
                //陈欠账单-选择账单的操作
                queryDetails(billNo, index) {
                    this.isactive = index;
                    var index = layer.load(0, {shade: false});
                    //根据水费单编号查询水费单明细
                    $.ajax({
                        type: 'GET',
                        url: "/py-billdetail/findByBillNo",
                        data: {"billNo": billNo},
                        dataType: 'json',
                        success: function (json) {
                            if (json.code==200) {
                                app.BilldetailList = json.data.PyBilldetailList;
                                //获取抄表数据
                                $.each(json.data.PyBilldetailList, function (index) {
                                    app.rdRead = this.pyBill.rdRead;
                                });
                            } else {
                                layer.msg(json.message, {icon: 2})
                            }
                            layer.close(index);
                        },
                    });
                },
                // 计算找零金额
                change(event) {
                    //应交金额
                    var billMoney = parseFloat(app.TotalDue - app.usUser.userMoney).toFixed(2);
                    //实交金额
                    var realMoney = event.target.value;
                    if (realMoney < billMoney) {
                        $("#zl").html(-parseFloat(billMoney - realMoney).toFixed(2));
                        layer.msg("实收金额小于陈欠总额", {icon: 7});
                    } else if (realMoney >= billMoney) {
                        $("#zl").html(parseFloat(realMoney - billMoney).toFixed(2));
                    }

                },
                //重置输入框
                resetValue() {
                    $(":input").each(function () {
                        if ($(this).attr("type") == "text" || $(this).attr("type") == "textarea") {
                            $(this).val("");
                        }
                    });
                    $("#zl").html("0.0");
                    app.usUser.userno = "";
                    app.TotalDue = '0.0';
                    app.usUser.username = "";
                    app.usUser.abc = "";
                    app.usUser.phone = "";
                    app.usUser.smsphone = "";
                    app.usUser.docNum = "";
                    app.usUser.address = "";
                    app.PyBill.realMoney = "0.0";
                    app.usUser.userMoney = '0.0';
                    app.PyBill.billMoney = '0.0';
                    app.PyUserhistoryList = '';
                    app.PyPayList = '';
                    app.billList = '';
                    app.User.userno = "";
                    app.User.username = "";
                    app.User.abc = "";
                    app.User.phone = "";
                    app.User.smsphone = "";
                    app.User.docNum = "";
                    app.User.address = "";
                },
                //查询用户信息
                findUser() {
                    var index = layer.open({
                        content: 'sys_selectUser.html?Userno=' +
                            '' + app.usUser.userno + '&UserName=' + app.usUser.username + '' +
                            '&abc=' + app.usUser.abc + '&Phone=' + app.usUser.phone +
                            '&smsphone=' + app.usUser.smsphone + '&DocNum=' + app.usUser.docNum + '&Address=' + app.usUser.address,
                        area: ['70%', '80%'],
                        resize: false,
                        shadeClose: true,
                        type: 2,
                        btn: ["关闭"],
                        scrollbar: false,
                    });
                },
                //查询可用发票
                selectInvoice() {
                    //延迟加载0.5秒
                    var index = layer.open({
                        area: ['70%', '80%'],
                        resize: false,
                        shadeClose: true,
                        type: 2,
                        btn: ["关闭"],
                        scrollbar: false,
                        content: 'pay_window_selectInvoice.html',
                    });
                },
                //交费
                pay() {
                    if (app.usUser.username == '' || app.usUser.username == '') {
                        layer.msg('请选择用户', {icon: 2});
                    } else if (app.PyBill.realMoney == '' || app.PyBill.realMoney == '') {
                        layer.msg('请填写实收金额', {icon: 2});
                    } else if ($("#zl").html() < 0) {
                        layer.msg('实收金额小于应交金额', {icon: 7});
                    } else if ($("#fp").val() == '' || $("#fp").val() == '') {
                        layer.msg('请选择发票', {icon: 7});
                    } else {
                        showDialog('确认交费吗？', function () {
                                app.payment.UserNo = app.usUser.userno;//用户信息
                                app.payment.RealMoney = $(".getmoney").val();//实交金额
                                app.payment.invoiceNo = $("#fp").val();//发票号
                                $.ajax({
                                    type: 'POST',
                                    url: "/py-bill/payment",
                                    data: app.payment,
                                    dataType: 'json',
                                    success: function (json) {
                                        layer.msg(json.message);
                                    }
                                });
                                // layer.load(1);
                                // //延迟加载0.5秒
                                // setTimeout(function () {
                                //     layer.closeAll('loading');
                                //     var index = layer.open({
                                //         area: ['70%', '80%'],
                                //         resize: false,
                                //         shadeClose: true,
                                //         type: 2,
                                //         btn: ["关闭"],
                                //         scrollbar: false,
                                //         content: 'pay_printInvoice.html',
                                //     });
                                // }, 500);
                            }
                        );
                    }
                },
                //发票补开
                reInvoice() {
                    showWindow({url: 'pay_window_reInvoice.html'});
                },
                //获取当前时间
                getTime() {
                    let yy = new Date().getFullYear();
                    let mm = new Date().getMonth() + 1;
                    let dd = new Date().getDate();
                    let hh = new Date().getHours();
                    let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes() : new Date().getMinutes();
                    let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds() : new Date().getSeconds();
                    app.gettime = yy + '年' + mm + '月' + dd + '日 ' + hh + ':' + mf + ':' + ss;
                }
                ,
                currentTime() {
                    setInterval(this.getTime, 500)
                },
            },
            created() {
                this.currentTime();
            }
        });
</script>
<script src="../js/jquery/jquery-1.5.2.min.js"></script>
<script src="../js/jquery/jquery-ui-1.8.12.custom.min.js"></script>
<script src="../js/misc/excanvas.min.js"></script>
<script src="../js/jquery/facebox.js"></script>
<script src="../js/jquery/jquery.visualize.js"></script>
<script src="../js/jquery/jquery.dataTables.min.js"></script>
<script src="../js/jquery/jquery.tablesorter.min.js"></script>
<script src="../js/jquery/jquery.uniform.min.js"></script>
<script src="../js/jquery/jquery.placeholder.min.js"></script>
<script src="../layui/layui.all.js"></script>
<script src="../js/widgets.js"></script>
<script src="../js/dashboard.js"></script>

<script type="text/javascript">

    $(document).ready(function () {
        Dashboard.init();

        //选择项初始化
        $('.tab_container').tabs();


    });
    var temp_html;

</script>
<table id="demo" lay-filter="test"></table>
</body>

</html>